package com.mahjong.server.protocolHandler.game;

import com.mahjong.server.common.Common;
import com.mahjong.server.mina.protocol.DataBuf;
import com.mahjong.server.mina.protocol.MessageProtocol;

public class ExitRoomResp extends MessageProtocol {

	private static final byte TAG = Common.Resp;

	private static final short PROTOCOL_NUM = 0x0012;

	private byte resultCode;

	public ExitRoomResp() {
		setTag(TAG);
		setProtocolNum(PROTOCOL_NUM);
	}

	public ExitRoomResp(byte resultCode) {
		this();
		this.resultCode = resultCode;
	}

	@Override
	public void respEncode(DataBuf buf) {
		buf.put(resultCode);
	}
}
